package teste;

public class BubbleSortAlgorithm extends SortAlgorithm {

	public void sort(int a[]) throws Exception {

		int i, j;

		for (i = 0; i < a.length; i++)
			for (j = a.length - 1; j > i; j--) {
				if (a[j - 1] > a[j]) {
					int aux = a[j - 1];
					a[j - 1] = a[j];
					a[j] = aux;
				}
			}
	}
}
